/**
 * Generate time : 2011-06-17 13:37:52
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cl.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCLNorientation
 * 
 */
public class ZMCLNorientation extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdResponseDepartment = " "; /* 责任单位名称 */
	private String fdResponsePeople = " "; /* 责任人 */
	private String fdCheckDate = " "; /* 检查时间 */
	private String fdCheckPlace = " "; /* 检查地点 */
	private String fdSendDepartmentId = " "; /* 发件部门 */
	private String fdSendPeopleId = " "; /* 发件人 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdResponseDepartment");
		eiColumn.setFieldLength(100);
		eiColumn.setDescName("责任单位名称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdResponsePeople");
		eiColumn.setFieldLength(200);
		eiColumn.setDescName("责任人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCheckDate");
		eiColumn.setFieldLength(19);
		eiColumn.setDescName("检查时间");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCheckPlace");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("检查地点");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSendDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("发件部门");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSendPeopleId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("发件人");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCLNorientation() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdResponseDepartment - 责任单位名称
	 * 
	 * @return the fdResponseDepartment
	 */
	public String getFdResponseDepartment() {
		return this.fdResponseDepartment;
	}

	/**
	 * set the fdResponseDepartment - 责任单位名称
	 */
	public void setFdResponseDepartment(String fdResponseDepartment) {
		this.fdResponseDepartment = fdResponseDepartment;
	}

	/**
	 * get the fdResponsePeople - 责任人
	 * 
	 * @return the fdResponsePeople
	 */
	public String getFdResponsePeople() {
		return this.fdResponsePeople;
	}

	/**
	 * set the fdResponsePeople - 责任人
	 */
	public void setFdResponsePeople(String fdResponsePeople) {
		this.fdResponsePeople = fdResponsePeople;
	}

	/**
	 * get the fdCheckDate - 检查时间
	 * 
	 * @return the fdCheckDate
	 */
	public String getFdCheckDate() {
		return this.fdCheckDate;
	}

	/**
	 * set the fdCheckDate - 检查时间
	 */
	public void setFdCheckDate(String fdCheckDate) {
		this.fdCheckDate = fdCheckDate;
	}

	/**
	 * get the fdCheckPlace - 检查地点
	 * 
	 * @return the fdCheckPlace
	 */
	public String getFdCheckPlace() {
		return this.fdCheckPlace;
	}

	/**
	 * set the fdCheckPlace - 检查地点
	 */
	public void setFdCheckPlace(String fdCheckPlace) {
		this.fdCheckPlace = fdCheckPlace;
	}

	/**
	 * get the fdSendDepartmentId - 发件部门
	 * 
	 * @return the fdSendDepartmentId
	 */
	public String getFdSendDepartmentId() {
		return this.fdSendDepartmentId;
	}

	/**
	 * set the fdSendDepartmentId - 发件部门
	 */
	public void setFdSendDepartmentId(String fdSendDepartmentId) {
		this.fdSendDepartmentId = fdSendDepartmentId;
	}

	/**
	 * get the fdSendPeopleId - 发件人
	 * 
	 * @return the fdSendPeopleId
	 */
	public String getFdSendPeopleId() {
		return this.fdSendPeopleId;
	}

	/**
	 * set the fdSendPeopleId - 发件人
	 */
	public void setFdSendPeopleId(String fdSendPeopleId) {
		this.fdSendPeopleId = fdSendPeopleId;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdResponseDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdResponseDepartment")), fdResponseDepartment));
		setFdResponsePeople(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdResponsePeople")), fdResponsePeople));
		setFdCheckDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCheckDate")), fdCheckDate));
		setFdCheckPlace(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCheckPlace")), fdCheckPlace));
		setFdSendDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendDepartmentId")), fdSendDepartmentId));
		setFdSendPeopleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendPeopleId")), fdSendPeopleId));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdResponseDepartment", StringUtils.toString(fdResponseDepartment, eiMetadata.getMeta("fdResponseDepartment")));
		map.put("fdResponsePeople", StringUtils.toString(fdResponsePeople, eiMetadata.getMeta("fdResponsePeople")));
		map.put("fdCheckDate", StringUtils.toString(fdCheckDate, eiMetadata.getMeta("fdCheckDate")));
		map.put("fdCheckPlace", StringUtils.toString(fdCheckPlace, eiMetadata.getMeta("fdCheckPlace")));
		map.put("fdSendDepartmentId", StringUtils.toString(fdSendDepartmentId, eiMetadata.getMeta("fdSendDepartmentId")));
		map.put("fdSendPeopleId", StringUtils.toString(fdSendPeopleId, eiMetadata.getMeta("fdSendPeopleId")));

		return map;

	}
}